package com.db.Dao;

import com.db.entity.Person;

import java.util.List;

public interface PersonDao {
    public static final Integer PAGE_SIZE =5;

    public List<Person> searchAll(Integer userid) throws Exception;

    public Person searchByNameMobile(Person person, Integer userid)throws Exception;

    public void addPerson(Person person)throws Exception;

    public void deletePersonById(Integer personId)throws Exception;

    public Person selectPersonById(Integer personId, Integer userid)throws Exception;

    public void updatePerson(Person person)throws Exception;

    public List<Person> searchlimit(Integer pageIndex, Integer userid)throws Exception;

    public List<Person> searchByName(Integer pageIndex, String personName, Integer userid)throws Exception;

    public List<Person> searchByMobile(Integer pageIndex, String mobiles, Integer userid)throws Exception;

    public List<Person> searchByAddress(Integer pageIndex, String address, Integer userid)throws Exception;

    public List<Person> searchByNameNo(String personName, Integer userid)throws Exception;

    public List<Person> searchByMobileNo(String Mobiles, Integer userid)throws Exception;

    public List<Person> searchByAddressNo(String Address, Integer userid)throws Exception;


}
